package com.example.function.pool.model.pojo;


import com.example.common.support.ApplicationContextProvider;
import com.example.function.pool.model.one.Assets;
import com.example.function.pool.service.IAssetsService;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.io.Serializable;

/**
 * Description: <AssetsPojo vo>. <br>
 * <p>
 * generate time:2021-7-27 15:53:03
 *
 * @author hanqf
 * @version V1.0
 */
@Data
public class AssetsPojo implements Serializable {
    private static final long serialVersionUID = 1L;

    /*
     * 资产id
     */
    private Long id;


    /*
     * 资产类型id
     */
    private Integer assetsTypeId;


    /*
     * 资产名称
     */
    private String assetsName;


    /*
     * 来源：初始数据，手动添加，项目xxx导入
     */
    private String assetsSource;


    /*
     * 更新时间
     */
    private java.util.Date assetsModifytiem;


    /*
     * 备注
     */
    private String assetsRemark;


    /**
     * 实体对象复制到数据对象
     */
    public static AssetsPojo wrapper(Assets assets) {
        AssetsPojo assetsPojo = new AssetsPojo();
        BeanUtils.copyProperties(assets, assetsPojo);
        final IAssetsService assetsService = (IAssetsService) ApplicationContextProvider.getBean("assetsService");

        return assetsPojo;
    }

}



